package com.czl.myRabbitMq.mqClient;

import lombok.Data;

import java.io.IOException;
@Data
public class ConnectionFactory {
    private int port;
    private String ip;
    public Connection newConnection(String ip, int port) throws IOException {
        return new Connection(ip, port);
    }
}
